<link href="/assets/addons/epay/css/common.css?v={$site.version}" rel="stylesheet">
<script src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script>
<script src="/assets/addons/epay/js/jquery.qrcode.min.js?v={$site.version}"></script>

<div class="container">
    <h2 class="scanpay-title">
        <img src="/assets/addons/epay/images/logo-wechat.png" alt="" height="32" class="pull-left" style="margin-right:5px;"> 微信支付
    </h2>

    <div class="scanpay scanpay-wechat">
        <div class="row">
            <div class="col-xs-12 col-sm-12">
                <div class="row">
                    <div class="col-xs-12 col-sm-5">
                        <div class="scanpay-body">
                            <div class="scanpay-order clearfix">
                                <p>订单标题：<em>{$order_data.description}</em></p>
                                <p>订单编号：<em>{$order_data.out_trade_no}</em></p>
                                <p>订单价格：<em class="scanpay-price">￥{$order_data.total_amount}</em> 元</p>
                            </div>
                            <div class="scanpay-qrcode">
                                <div class="qrcode" data-text="{$pay_data.code_url}"></div>
                                <div class="expired hidden"></div>
                                <div class="paid hidden"></div>
                            </div>
                            <div class="scanpay-tips">
                                <p>请使用微信扫一扫<br>扫描二维码进行支付</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-6 hidden-xs">
                        <div class="scanpay-screenshot">
                            <img src="/assets/addons/epay/images/screenshot-wechat.png" class="img-responsive" alt=""/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
<script>
    if ($(".qrcode").length > 0) {
        $(".qrcode").qrcode({width: 250, height: 250, text: $(".qrcode").data("text")});
    }
</script>

